<?php

namespace App\Modules\Admin\Entities\Member;

use App\Models\Model;

class UserExtractModel extends Model
{
    protected $table='user_extract';
    protected $primaryKey='id';
    protected $is_delete=0;


    public function user_info()
    {
        return $this->hasOne(UsersModel::class,'id','user_id')->select(['id','openid','nickname','username','water_role']);
    }
    public function bank_info()
    {
        return $this->hasOne(UserBankModel::class,'id','user_bank_id');
    }
}
